package com.yuantu.judiciary.exception.enums;

import com.yuantu.judiciary.common.CodeEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 账号模块异常码
 *
 * @author syw
 * @since 2023-08-06
 **/
@Getter
@AllArgsConstructor
public enum AccountExceptionEnum implements CodeEnum {
    /**
     * 账号相关
     */
    ACCOUNT_NOT_EXIST(42001, "账号不存在"),
    ACCOUNT_NOT_REGISTER(42002, "账号资料不完整，请在设置中补充相应信息"),
    REGISTER_APPLYING(42003, "注册信息审核中"),
    ACCOUNT_EXIST(42004, "账号已存在"),
    ACCOUNT_STATE_NOT_EXIST(42005, "账号状态不存在"),
    ACCOUNT_NOT_PRIMARY(42006, "仅管理员可操作"),
    ACCOUNT_AT_LEAST_ONE(42007, "请确保有至少有一个管理员账号"),
    HAS_ACCOUNT(42008, "用户已有账号，可直接登陆使用程序"),
    NOT_ENOUGH_POINT(42009,"没有足够的余额"),
    ACCOUNT_ORG_INFO_NOT_EXIST(42010, "账号的组织信息获取出错"),

    ;

    private final int code;
    private final String message;
}
